/**
 * 
 */
package com.wskj.library.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author 胡洋
 * @describe  退出 清除session 缓存退出系统
 * @Date 2018年3月22日下午6:14:11
 * @version 1.0
 */
@WebServlet(urlPatterns="/loginOut.do")
public class LoginOutServlet extends HttpServlet {
	
	
	@Override
	protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		 req.getSession().invalidate();
		 resp.sendRedirect(req.getContextPath()+"/admin/login.do");
	}

}
